package qlsl.androiddesign.util.runfeng;


import android.widget.TextView;

/**
 * View工具类
 * <p/>
 * ViewUtils.java
 *
 * @author 火蚁(http://my.oschina.net/u/253900)
 * @data 2015-3-11 上午11:43:58
 */
public class ViewUtils {

    /***
     * 设置TextView的划线状态
     * 设置中划线并加清晰
     *  Paint. STRIKE_THRU_TEXT_FLAG|Paint.ANTI_ALIAS_FLAG
     * @param tv
     * @param flags
     * @return void
     * @author 火蚁
     * 2015-3-11 上午11:46:10
     */
    public static void setTextViewLineFlag(TextView tv, int flags) {
        tv.getPaint().setFlags(flags);// flags == Paint.UNDERLINE_TEXT_FLAG
        tv.invalidate();
    }


}

